package cn.lili.modules.order.aftersale.entity.enums;

import cn.hutool.core.text.CharSequenceUtil;

/**
 * 交易投诉状态
 *
 * @author paulG
 * @since 2020/12/4
 **/
public enum ComplaintStatusEnum {

    /**
     * 新投诉
     */
    NEW("新投诉", ""),
    /**
     * 已撤销
     */
    CANCEL("已撤销", "Revoked"),
    /**
     * 待申诉
     */
    WAIT_APPEAL("待申诉", "Pending Appeal"),
    /**
     * 对话中
     */
    COMMUNICATION("对话中", "In Communication"),
    /**
     * 等待仲裁
     */
    WAIT_ARBITRATION("等待仲裁", "Waiting for Arbitration"),
    /**
     * 已完成
     */
    COMPLETE("已完成", "Completed");

    private final String description;
    private final String descriptionEnglish;

    ComplaintStatusEnum(String description, String descriptionEnglish) {
        this.description = description;
        this.descriptionEnglish = descriptionEnglish;
    }

    public String getDescription() {
        if (CharSequenceUtil.isNotBlank(this.descriptionEnglish)) {
            return this.descriptionEnglish;
        }
        return description;
    }

    public String description() {
        if (CharSequenceUtil.isNotBlank(this.descriptionEnglish)) {
            return this.descriptionEnglish;
        }
        return this.description;
    }


}
